/**
 * <copyright>
 * </copyright>
 *

 */
package de.rwth.adroidGuiLang.impl;

import de.rwth.adroidGuiLang.AdroidGuiLangPackage;
import de.rwth.adroidGuiLang.SeperatorLine;

import org.eclipse.emf.common.notify.Notification;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.ENotificationImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Seperator Line</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link de.rwth.adroidGuiLang.impl.SeperatorLineImpl#getLiniendicke <em>Liniendicke</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class SeperatorLineImpl extends BoxImpl implements SeperatorLine
{
  /**
   * The default value of the '{@link #getLiniendicke() <em>Liniendicke</em>}' attribute.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getLiniendicke()
   * @generated
   * @ordered
   */
  protected static final int LINIENDICKE_EDEFAULT = 0;

  /**
   * The cached value of the '{@link #getLiniendicke() <em>Liniendicke</em>}' attribute.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getLiniendicke()
   * @generated
   * @ordered
   */
  protected int liniendicke = LINIENDICKE_EDEFAULT;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  protected SeperatorLineImpl()
  {
    super();
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  protected EClass eStaticClass()
  {
    return AdroidGuiLangPackage.Literals.SEPERATOR_LINE;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public int getLiniendicke()
  {
    return liniendicke;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setLiniendicke(int newLiniendicke)
  {
    int oldLiniendicke = liniendicke;
    liniendicke = newLiniendicke;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, AdroidGuiLangPackage.SEPERATOR_LINE__LINIENDICKE, oldLiniendicke, liniendicke));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public Object eGet(int featureID, boolean resolve, boolean coreType)
  {
    switch (featureID)
    {
      case AdroidGuiLangPackage.SEPERATOR_LINE__LINIENDICKE:
        return getLiniendicke();
    }
    return super.eGet(featureID, resolve, coreType);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public void eSet(int featureID, Object newValue)
  {
    switch (featureID)
    {
      case AdroidGuiLangPackage.SEPERATOR_LINE__LINIENDICKE:
        setLiniendicke((Integer)newValue);
        return;
    }
    super.eSet(featureID, newValue);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public void eUnset(int featureID)
  {
    switch (featureID)
    {
      case AdroidGuiLangPackage.SEPERATOR_LINE__LINIENDICKE:
        setLiniendicke(LINIENDICKE_EDEFAULT);
        return;
    }
    super.eUnset(featureID);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
      case AdroidGuiLangPackage.SEPERATOR_LINE__LINIENDICKE:
        return liniendicke != LINIENDICKE_EDEFAULT;
    }
    return super.eIsSet(featureID);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public String toString()
  {
    if (eIsProxy()) return super.toString();

    StringBuffer result = new StringBuffer(super.toString());
    result.append(" (Liniendicke: ");
    result.append(liniendicke);
    result.append(')');
    return result.toString();
  }

} //SeperatorLineImpl
